package com.cxx.home.controller;


import com.cxx.home.schedule.QuartzDto;
import com.cxx.home.service.QuartzService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/quartz")
@Tag(name = "定时任务")
public class QuartzController {
    @Resource
    private QuartzService quartzService;

    @Operation(summary = "查询所有任务")
    @GetMapping("")
    public List<QuartzDto> queryQuartz() {
        return quartzService.queryQuartzTask();
    }
}
    